// -----------------------------------------------------------------------------
// WEB B
// r3a group
// -----------------------------------------------------------------------------
$.fn.getMydata = function(_lotto_id,_gametype){
 $().disAreaObj();
 $.getJSON('op.php?op=xml_3d&fp=rate_3d&playtype=r3a&lotto_id_3d='+_lotto_id+"&gametype="+_gametype+"&disk="+ $("select#slcDisk").val() ,function(ratedata){
      var dataLen = 0;
      var urlPre = "";
      var hrefStr = "";
      var palygroup = "r3a";
      
      if(ratedata.errormsg != undefined){
        $("div#errormsg").addClass("error").text("No Rate data");
      }else{
        var disk = $("select#slcDisk").val(); 
        
        // "22","23","42","43","44","45" => 22,23 in r1 is OK, too
        // two face     
        $().showTabelDataTwoFace(ratedata.r42,"tblNowBet01",disk,_gametype,palygroup,42);    
        $().showTabelDataTwoFace(ratedata.r43,"tblNowBet01",disk,_gametype,palygroup,43);
        
        $().showTabelDataTwoFace(ratedata.r22,"tblNowBet02",disk,_gametype,palygroup,22);
        $().showTabelDataTwoFace(ratedata.r23,"tblNowBet02",disk,_gametype,palygroup,23);
        
        $().showTabelDataTwoFace(ratedata.r44,"tblNowBet02",disk,_gametype,palygroup,44);
        $().showTabelDataTwoFace(ratedata.r45,"tblNowBet02",disk,_gametype,palygroup,45);
        
   }
   
   $().redisAreaObj();
   $("div#mainPageData").show();
   $("div#errormsg").text("");
   // change text or checkbox type
    var timebtnType = $("input:hidden#timebtnType").val();
    if(timebtnType == "checkbox"){
      $().timebtnTypeToCheckbox(); 
    }
    
    // check rate each 30 sec
    //renewRateTimeObj = setTimeout(function(){$().renewR1data(_lotto_id,_gametype);}, renewRateTime);  
    
  });
};